package org.itboys.mobile.entity.mongo;

import org.itboys.mobile.util.Test;
import org.itboys.mongodb.entity.BaseMongoEntity;
import org.mongodb.morphia.annotations.Entity;

/**
 * 作者：jiangxiong
 * 日期：2017年5月8日
 * 联系方式 ：empty90911@126.com
 * 描述：圣代_关联_权限。
 *
 */
@Entity(value="SundayPermission", noClassnameStored=true)
public class SundayPermission extends BaseMongoEntity {
    private Long memberId;//门店Id
    private String memberNumber;//门店编码
    private Long productId ;//其他实体ID。
    private String productNo;//产品编码
    private String name;//名称
    private String standard;//规格

    private Integer store;//库存数量。针对商品
    private Double price;//价格。针对商品

    public SundayPermission() {
    }

    public SundayPermission(Long memberId, String memberNumber,
                            Long productId, String productNo,
                            String name, String standard,
                            Integer store, Double price) {
        this.memberId = memberId;
        this.memberNumber = memberNumber;
        this.productId = productId;
        this.productNo = productNo;
        this.name = name;
        this.standard = standard;
        this.store = store;
        this.price = price;
    }

    public Long getMemberId() {
        return memberId;
    }

    public void setMemberId(Long memberId) {
        this.memberId = memberId;
    }

    public String getMemberNumber() {
        return memberNumber;
    }

    public void setMemberNumber(String memberNumber) {
        this.memberNumber = memberNumber;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public String getProductNo() {
        return productNo;
    }

    public void setProductNo(String productNo) {
        this.productNo = productNo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getStandard() {
        return standard;
    }

    public void setStandard(String standard) {
        this.standard = standard;
    }

    public Integer getStore() {
        return store;
    }

    public void setStore(Integer store) {
        this.store = store;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj instanceof SundayPermission) {
            SundayPermission permission = (SundayPermission) obj;
            return permission.getId()==this.getId();
        }
        return false;
    }
}
